package com.ecplatform.item;

import com.ecplatform.common.config.JwtProperties;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@SpringBootApplication
@ComponentScan(basePackages = {"com.ecplatform.item", "com.ecplatform.common" ,"com.ecplatform.api"}) // 扫描包,能够找到其他包下的bean
@EnableAspectJAutoProxy
@EnableConfigurationProperties(JwtProperties.class)
@EnableFeignClients(basePackages = {"com.ecplatform.api"})
public class ItemApplication {
    public static void main(String[] args) {
        SpringApplication.run(ItemApplication.class, args);
    }
}
